<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="Access-Control-Allow-Origin" content="*" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>登录</title>
		<link rel="stylesheet" type="text/css" href="css/login.css" />
		<link href="css/mui.min.css" rel="stylesheet" type="text/css">
		<script charset="UTF-8" src="js/config.js"></script>
		<script charset="UTF-8" src="js/testActivityName.js"></script>
		<script charset="UTF-8" src="js/core.js"></script>
		<script charset="UTF-8" src="js/cipher-core.js"></script>
		<script charset="UTF-8" src="js/tripledes.js"></script>
		<script charset="UTF-8" src="js/mode-ecb.js"></script>
		<script src="js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="js/zepto.min.js"></script>
		<script type="text/javascript" src="js/spin.min.js"></script>
		<script charset="UTF-8" src="js/mui.min.js"></script>
		<script src="js/jquery.qrcode.min.js"></script>
		<script src="js/qrcode.js"></script>
		<script src="js/jquery.qrcode.js"></script>
	</head>
	<body>
		<div class="spin"></div>
		<div class="dl_logo"><img src="img/logo@3x.png" ></div>
		<p class="dl_bt">金牛星奶牛养殖AI助手</p>
		<div class="dl_zh">
			<img src="img/icon_z@3x.png" >
			<input type="text" name="account" id="account" value="" placeholder="请输入您的账号" onfocus="if(value==defaultValue){value='';this.style.color='#4c4c4c'}" onblur="if(!value){value=defaultValue;this.style.color='#bebebe'}">
		</div>
		<div class="dl_zh">
			<img src="img/icon_m@3x.png" >
			<input type="password" name="password" id="password" value="" placeholder="请输入密码"  onfocus="if(value==defaultValue){value='';this.style.color='#4c4c4c'}" onblur="if(!value){value=defaultValue;this.style.color='#bebebe'}">
		</div>
		<div class="clear"></div>
		<p class="dl_dlan" onclick="logins()">登录</p>
		<script>
			var passwordDate =JSON.parse(localStorage.getItem('passwordDate'));
			console.log(passwordDate)
			if(passwordDate !=''){
				var date=getDateNow();
				var year =parseInt(date.slice(0,4))
				var month =parseInt(date.slice(5,7))
				var day =parseInt(date.slice(8,10))
				var year1 =parseInt(passwordDate.slice(0,4))
				var month1 =parseInt(passwordDate.slice(5,7))
				var day1 =parseInt(passwordDate.slice(8,10))
				if(year == year1 && month-month1 <= 1 && day-day1 >= 0){
					$("#account").val(JSON.parse(localStorage.getItem('account')))
					$("#password").val(JSON.parse(localStorage.getItem('password')))
					logins();
				}
			}
        
          function postStr(pushtoken){
              localStorage.setItem('jpush',pushtoken)
          }
        
		</script>
	</body>
</html>
